#include<stdio.h>

void main() {	
	int n;
	int num_of_bits = 0;
	int bits[20] = {0};
	scanf("%d", &n);

	while(n>0) {
		bits[num_of_bits++] = n%2;
		n = n/2;
	}
	for(int i=num_of_bits-1;i>=0;i--) {
		printf("%d", bits[i]);
	}
	printf("\n");
}

